package com.competition.reception.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("用户管理查询封装")
public class UserQueryVo implements Serializable {
    private static final long serialVersionUID = -1242493306307174690L;
    /**
     * 查询方式
     * 0 根据注册时间
     * 1 根据文章数量
     * 2 根据成绩
     */
    private Integer mark;
    /**
     * 查询条件 用户名/id
     */
    private String key;
    /**
     * 总页数
     */
    private Integer page;
    /**
     * 每页数据
     */
    private Integer limit;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date modifiedTime;

    private Integer start;
    public Integer getStart() {
        this.start=(page-1)*limit;
        return this.start;
    }

}
